package com.ruoyi.system.domain.module.event;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * 巡更线路对象 event_patrol_line
 *
 * @author ruoyi
 * @date 2023-12-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("event_patrol_line")
public class EventPatrolLine implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 所在物业
     */
    private Integer propertyId;

	@TableField(exist = false)
	private String propertyName;

    /**
     * 所在小区
     */
    private Integer estateId;

	@TableField(exist = false)
	private String estateName;

    /**
     * 线路名称
     */
    private String lineName;

    /**
     * 完成方式 0 - 无序巡更  1 - 有序巡更
     */
    private Integer finishType;

    /**
     * 状态 0 - 未启用  1 已启用
     */
    private Integer state;

    /**
     * 添加时间
     */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

	@TableField(exist = false)
	private List<EventPatrolLineInfos> lineInfos;

    /**
     * 备注信息
     */
    private String remark;

}
